/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb;

import entities.Category;
import entities.Product;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Jesus
 */
@Local
public interface ProductBeanLocal {

    Product insert(Product product);

    Product update(Product product);

    List<Product> findAll();

    List<Product> findAllLike(String query);

    Product findById(Long productId);

    Product findByName(String productName);

    List<Product> findByCategory(Category category);
}
